namespace EntLibEC.View.Cmn
{
	using System;
	using System.Data;
	using System.Drawing;
	using System.Web;
	using System.Web.UI.WebControls;
	using System.Web.UI.HtmlControls;

	using EntLibEC.Cmn;
	using EntLibEC.Info.Basic;
	using EntLibEC.Biz.Basic;

	/// <summary>
	///		Summary description for Manufacturer.
	/// </summary>
	public partial class Manufacturer : System.Web.UI.UserControl
	{

		protected void Page_Load(object sender, System.EventArgs e)
		{
			lnkSearch.Attributes["onclick"]= "javascript:openWindowS3('../Cmn/ManufacturerPickUp.aspx?clientID=" + this.ClientID + "'); return false;";
		}
		public int ManuSysNo
		{
			get
			{
				int sysno;
				try
				{
					sysno = Convert.ToInt32(txtManuSysNo.Text.Trim());
				}
				catch
				{
					sysno = AppConst.IntNull;
				}

				return sysno;
			}
			set
			{
				ManufacturerInfo oInfo = ManufacturerManager.GetInstance().Load(value);
				if ( oInfo != null )
				{
					txtManuSysNo.Text = oInfo.SysNo.ToString();
					txtManuName.Text = oInfo.ManufacturerName;
				}
				else
				{
					txtManuSysNo.Text = "";
					txtManuName.Text = "";
				}
			}
		}

		#region Web Form Designer generated code
		override protected void OnInit(EventArgs e)
		{
			//
			// CODEGEN: This call is required by the ASP.NET Web Form Designer.
			//
			InitializeComponent();
			base.OnInit(e);
		}
		
		/// <summary>
		///		Required method for Designer support - do not modify
		///		the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{

		}
		#endregion
	}
}
